home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / settm.mk,v < prev    next >
Encoding:
Text File  |  1992-06-10  |  2.1 KB  |  105 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.3
  10. date     92.06.10.13.05.28;  author jhh;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     91.04.14.22.36.48;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     91.04.11.12.57.44;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @System makefile fragment to set the default target machine type.
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @leave TM as ds5000 if you're in a kernel module
  33. @
  34. text
  35. @#
  36. # This Makefile is included by the user's Makefile.  It sets the
  37. # target machine type (TM), though the user can override it in the
  38. # "make" command.  This operation is done here so that we can add
  39. # backward-compatible machine types (e.g., ds5000) and have users
  40. # easily treat the new machine type the same as the old one.
  41. #
  42. # $Header: /sprite/lib/pmake/RCS/settm.mk,v 1.2 91/04/14 22:36:48 kupfer Exp $
  43.  
  44. # If there is only one allowable machine type, that's the default
  45. # target type.  Otherwise the default is the type we're running on
  46. # now.
  47.  
  48. NUM_MACHINES   != echo $(MACHINES) | wc -w
  49.  
  50. #if $(NUM_MACHINES) == 1
  51. TM           ?= $(MACHINES)
  52. #else
  53. TM           ?= $(MACHINE)
  54. #endif
  55.  
  56. # Map ds5000 to ds3100 (only if we are not in a kernel module as determined
  57. # by having a type of kernel). Also, if the type isn't defined then assume
  58. # we are not in a kernel module. This is to be backwards compatible with
  59. # older Makefiles..
  60.  
  61. #if !empty(TM:Mds5000) 
  62. #if !defined(TYPE) || empty(TYPE:Mkernel)
  63. TM        = ds3100
  64. #endif
  65. #endif
  66. @
  67.  
  68.  
  69. 1.2
  70. log
  71. @If there is only one legal target type, make that the default (rather
  72. than always using the machine type that pmake is running on).  This
  73. restores the semantics we had with the DEFTARGET stuff, and it allows
  74. us to say "pmake sun3" on a sun4 even if sun4 isn't a legal target type.
  75. @
  76. text
  77. @d8 1
  78. a8 1
  79. # $Header: /sprite/lib/pmake/RCS/settm.mk,v 1.1 91/04/11 12:57:44 kupfer Exp $
  80. d23 4
  81. a26 1
  82. # Map ds5000 to ds3100.
  83. d28 2
  84. a29 1
  85. #if !empty(TM:Mds5000)
  86. d31 1
  87. @
  88.  
  89.  
  90. 1.1
  91. log
  92. @Initial revision
  93. @
  94. text
  95. @d8 1
  96. a8 1
  97. # $Header: /sprite/lib/pmake/RCS/tm.mk,v 1.45 91/03/24 20:58:16 jhh Exp $
  98. d11 3
  99. a13 1
  100. # The default target type is the type we're running on now.
  101. d15 5
  102. d21 1
  103. @
  104.